package com.zhengsr.wanandroid.mvp.model;

import com.zhengsr.corelib.bean.ArticleCollectBean;
import com.zhengsr.corelib.bean.BannerBean;
import com.zhengsr.corelib.bean.BaseResponse;
import com.zhengsr.corelib.net.HttpCreate;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by zhengshaorui
 * time: 2018/8/19
 */

public class HomeModel {


    public void loadData(){

    }

    public Observable<BaseResponse<List<BannerBean>>> loadBannerData(){
        return HttpCreate.getService().getBannerData();

    }

    public Observable<BaseResponse<ArticleCollectBean>> loadArticleList(int num){
        return HttpCreate.getService().getArticleData(num);

    }
}
